//
//  RadioCollectionViewCell.swift
//  readtool
//
//  Created by Wan Jiading on 2017/6/7.
//  Copyright © 2017年 DAD. All rights reserved.
//

import UIKit

class RadioCollectionViewCell: UICollectionViewCell {
    
	@IBOutlet weak var imageView: UIImageView!
	
	@IBOutlet weak var titleLabel: UILabel!
	
	@IBOutlet weak var countLabel: UILabel!
	
	var radio: RadioModel? {
		didSet {
//			imageView.s
			
			titleLabel.text = radio!.title
			countLabel.text = radio!.list_count!
			
			self.contentView.backgroundColor = UIColor.rgb(radio!.bg_color!)
		}
	}
	
	override func awakeFromNib() {
		super.awakeFromNib()
		
		self.backgroundColor = UIColor.lightGray
		self.layer.cornerRadius = 3
	}
	
}
